import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [
  {
    path: '/',
    redirect:"Home"   
  },
  {
    path: '/Home',
    name: 'Home',
    component: () => import('../views/Home.vue')
  },{
    path: '/Classify',
    name: 'Classify',
    component: () => import('../views/Classify.vue')
  },{
    path: '/Shopping',
    name: 'Shopping',
    component: () => import('../views/Shopping.vue')
  },{
    path: '/My',
    name: 'My',
    component: () => import('../views/My.vue')
  }
]
const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})
export default router